/**
 * @author mithun
 */


Event.observe(window, 'load', function(event) {
	var inputs  = document.getElementsByTagName('input');
	for(var i = 0; i < inputs.length; ++i){
		if (inputs[i].type == 'submit' || inputs[i].type == 'reset' || inputs[i].type == 'button'){
			inputs[i].className = inputs[i].className+" buttonStyle";	
			//inputs[i].setAttribute('className ', 'buttonStyle');
			//inputs[i].addClassName('buttonStyle');	
		}
	}
	/*
	var pageImages  = document.getElementsByTagName('img');
	for(var i = 0; i < pageImages.length; ++i){
		fixPNG(pageImages[i]);	
	}
	*/
});


var fixPNG = function(myImage){
	
	var arVersion = navigator.appVersion.split("MSIE");
	var version   = parseFloat(arVersion[1]);
	if((version >= 5.5) && (version < 7) && (document.body.filters)) {
		var imgID = (myImage.id) ? "id='" + myImage.id + "' " : "";
		var imgClass = (myImage.className) ? "class='" + myImage.className + "' " : "";
		var imgTitle = (myImage.title) ? 
		             "title='" + myImage.title  + "' " : "title='" + myImage.alt + "' ";
		var imgStyle = "display:inline-block;" + myImage.style.cssText;
		var strNewHTML = "<span " + imgID + imgClass + imgTitle
	              + " style=\"" + "width:" + myImage.width 
	              + "px; height:" + myImage.height 
	              + "px;" + imgStyle + ";"
	              + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
	              + "(src=\'" + myImage.src + "\', sizingMethod='scale');\"></span>";
		myImage.outerHTML = strNewHTML	  
	}
	
}
	
